import request from '@/utils/request'

// 查询客户调拨列表
export function listTransferclient(query) {
  return request({
    url: '/wm/transferclient/list',
    method: 'get',
    params: query
  })
}

// 查询客户调拨详细
export function getTransferclient(transferId) {
  return request({
    url: '/wm/transferclient/' + transferId,
    method: 'get'
  })
}

// 新增客户调拨
export function addTransferclient(data) {
  return request({
    url: '/wm/transferclient',
    method: 'post',
    data: data
  })
}

// 修改客户调拨
export function updateTransferclient(data) {
  return request({
    url: '/wm/transferclient',
    method: 'put',
    data: data
  })
}

// 删除客户调拨
export function delTransferclient(transferId) {
  return request({
    url: '/wm/transferclient/' + transferId,
    method: 'delete'
  })
}
//执行转移
export function execute(transferId){
  return request({
    url: '/wm/transferclient/'+transferId,
    method: 'put'
  })
}
